﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Site.Master" AutoEventWireup="true"
    CodeBehind="ProductList.aspx.cs" Inherits="HuaProject.Web.Admin.ProductList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../css/TableStyle.css" rel="stylesheet" type="text/css" />
    <link href="../css/PageStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView1" runat="server" Width="100%" AutoGenerateColumns="False"
        CssClass="mytable">
        <Columns>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" ImageUrl='<%#"~/"+Eval("Piicture") %>' ImageAlign="NotSet"
                        Width="100px" Height="100px" />
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品名称">
                <ItemTemplate>
                    <%# Eval("Title") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="商家编码">
                <ItemTemplate>
                    <%# Eval("Coding")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品类别">
                <ItemTemplate>
                    <%# Eval("Type")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="开孔尺寸">
                <ItemTemplate>
                    <%# Eval("HoleSize")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="灯具功率">
                <ItemTemplate>
                    <%# Eval("Power")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="输入电压">
                <ItemTemplate>
                    <%# Eval("Voltage")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="可选颜色">
                <ItemTemplate>
                    <%# Eval("Colors")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="防护等级">
                <ItemTemplate>
                    <%# Eval("Rating")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="环境温度">
                <ItemTemplate>
                    <%# Eval("Temperature")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="外壳材质">
                <ItemTemplate>
                    <%# Eval("Material")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="添加人">
                <ItemTemplate>
                    <%# new HuaProject.DAL.Users().GetByName(Eval("InsertUid"))%>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle Height="40px" />
    </asp:GridView>
    <div style="width: 100%">
        <div style="display: inline-block; width: 40%;">
            共<%=AspNetPager1.PageCount%>页 当前为第<%=AspNetPager1.CurrentPageIndex%>页 每页<%=AspNetPager1.PageSize%>条
            共<%=AspNetPager1.RecordCount%>条</div>
        <div style="display: inline-block; width: 59%;">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                PageSize="30" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageIndexBoxType="DropDownList"
                PrevPageText="上一页" ShowPageIndexBox="Always" SubmitButtonText="GO" CustomInfoHTML=""
                CustomInfoTextAlign="Center" AlwaysShow="True" Wrap="False" CssClass="paginator"
                CurrentPageButtonClass="cpb" HorizontalAlign="Left">
            </webdiyer:AspNetPager>
        </div>
    </div>
</asp:Content>
